package com.skyline.energy.provider.spring;

import java.util.List;
import java.util.Map;

import com.skyline.energy.dataaccess.jdbc.KeyHolder;

public class SpringKeyHolderAdapter implements org.springframework.jdbc.support.KeyHolder {
	private final KeyHolder keyHolder;

	public SpringKeyHolderAdapter(KeyHolder keyHolder) {
		this.keyHolder = keyHolder;
	}

	@Override
	public Number getKey() {
		return keyHolder.getKey();
	}

	@Override
	public Map<String, Object> getKeys() {
		return keyHolder.getKeys();
	}

	@Override
	public List<Map<String, Object>> getKeyList() {
		return keyHolder.getKeyList();
	}

}
